package com.gxc.oauth2.repository;

import com.gxc.oauth2.entity.TbUserRoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author GongXincheng
 * @since 2019-10-11 17:45
 */
public interface UserRoleRepository extends JpaRepository<TbUserRoleEntity, Long> {

    List<TbUserRoleEntity> findByUserId(Long userId);

    List<TbUserRoleEntity> findByRoleId(Long roleId);

}
